package com.asset.pojo;

import java.util.Date;

public class UserOperate {

	private Long id;
	private String optePerson;//操作人员
	private Short opteGenre;//操作类型
	private String userCode;//被操作者编号
	private String userName;//被操作者姓名
	private String opteRemark;//操作备注
	private Date opteTime;//操作时间
	
	public enum OpteGenre{
		//操作类型 : 修改,分配,领用,归还,删除
		Add("添加",(short)0),Modify("修改",(short)1),Delete("删除",(short)2);
	        public short value;
			public String name;
			OpteGenre(String name,short value){
				this.value = value;
				this.name = name;
			}
			public static String getName(short value) {
		        for (OpteGenre c : OpteGenre.values()) {  
		            if (c.getValue() == value) {  
		                return c.name;  
		            }  
		        }  
		        return null;  
		    } 
			public static short getValue(String name) {
	            for (OpteGenre c : OpteGenre.values()) {  
	                if (c.getName().equals(name)) {
	                    return c.value;  
	                }  
	            }
	            return 404;  
	        } 
	        public short getValue(){
	            return value;
	        }
	        public void setValue(short value){
	            this.value = value;
	        }
	        public String getName(){
	            return name;
	        }
	        public void setName(String name){
	            this.name = name;
	        }
			
	    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOptePerson() {
		return optePerson;
	}

	public void setOptePerson(String optePerson) {
		this.optePerson = optePerson;
	}

	public Short getOpteGenre() {
		return opteGenre;
	}

	public void setOpteGenre(Short opteGenre) {
		this.opteGenre = opteGenre;
	}
	
	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getOpteRemark() {
		return opteRemark;
	}

	public void setOpteRemark(String opteRemark) {
		this.opteRemark = opteRemark;
	}

	public Date getOpteTime() {
		return opteTime;
	}

	public void setOpteTime(Date opteTime) {
		this.opteTime = opteTime;
	}
}
